import * as CONSTANT  from '../constants'
import { fromJS } from 'immutable'

export const setnewsCity =(city) =>({
    type : CONSTANT.SETNC,
    city : fromJS(city),
    

})

export const setnewsInfo =(info) =>({
    type : CONSTANT.SETNI,
    hasNextPage:info.hasNextPage,
    news_list :info.list ,
    pageNum:info.pageNum,
    nextPage:info.nextPage

})